package com.learnyou.server.xingzuo.dao.repository.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.learnyou.server.xingzuo.dao.model.BaseEntity;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 行为汇总
 * </p>
 *
 * @author heweifeng
 * @since 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_behavior_statistic")
@ApiModel(value="BehaviorStatistic对象", description="行为汇总")
public class BehaviorStatistic extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设备序列号")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "动作")
    @TableField("behavior")
    private Integer behavior;

    @ApiModelProperty(value = "汇总日期")
    @TableField("statistic_time")
    private Date statisticTime;

    @ApiModelProperty(value = "动作次数")
    @TableField("behavior_count")
    private Date behaviorCount;

    @ApiModelProperty(value = "出现时长，分钟数")
    @TableField("behavior_times")
    private Date behaviorTimes;


}
